<!DOCTYPE html>

<html lang="en">
<head>
    <title>国家列表</title>
    <link rel="icon" type="image/png" href="/img/default.png">
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="/css/bootstrap.css"/>
</head>
<body>
    <#if msg??>
        <div class="container-fluid" style="text-align: center">
            <h1>${msg}(${syCountryList?size})</h1>
        </div>
    </#if>
    <#if continentType??>
        <div class="container-fluid" style="text-align: center">
            <h1>${continentType.value}(${syCountryList?size})</h1>
        </div>
    </#if>
    <#if continentSubType??>
        <div class="container-fluid" style="text-align: center">
            <h1>${continentSubType.value}(${syCountryList?size})</h1>
        </div>
    </#if>
    <#if continentType?? && continentSubType??>
        <div class="container-fluid" style="text-align: center">
            <h1>${continentType.value} -- ${continentSubType.value}(${syCountryList?size})</h1>
        </div>
    </#if>
    <div class="container-fluid">
        <a href="${request.contextPath}/country/list">全部</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentType=AFC">亚洲</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentType=UEFA">欧洲</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentType=CAF">非洲</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentType=CONMEBOL">南美洲</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentType=OFC">大洋洲</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentType=CONCACAF">中北美洲及加勒比海地区</a>
    </div>
    <div class="container-fluid">
        <span style="font-size: 20px; text-align: left;">亚洲：</span>
        <a href="${request.contextPath}/country/list?continentSubType=EAFF">东亚</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=WAFF">西亚</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=CAFA">中亚</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=AFF">东南亚</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=SAFF">南亚</a> &nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <div class="container-fluid">
        <span style="font-size: 20px; text-align: left;">欧洲：</span>
        <a href="${request.contextPath}/country/list?continentSubType=EE">东欧</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=SE">南欧</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=WE">西欧</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=NE">北欧</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=BS">波罗的海</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=BI">不列颠群岛</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=AE">亚欧</a>
    </div>
    <div class="container-fluid">
        <span style="font-size: 20px; text-align: left;">非洲：</span>
        <a href="${request.contextPath}/country/list?continentSubType=CA">中非</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=NA">北非</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=SA">南非</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=WA">西非</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=EA">东非</a>
    </div>
    <div class="container-fluid">
        <span style="font-size: 20px; text-align: left;">南美洲：</span>
        <a href="${request.contextPath}/country/list?continentSubType=SAM">南美洲</a>
    </div>
    <div class="container-fluid">
        <span style="font-size: 20px; text-align: left;">中北美洲及加勒比海地区：</span>
        <a href="${request.contextPath}/country/list?continentSubType=NAM">北美洲</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=CAM">中美洲</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=CS">加勒比海</a>
    </div>
    <div class="container-fluid">
        <span style="font-size: 20px; text-align: left;">大洋洲：</span>
        <a href="${request.contextPath}/country/list?continentSubType=ONZ">新西兰</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=OP">波利尼西亚</a> &nbsp;&nbsp;&nbsp;&nbsp;
        <a href="${request.contextPath}/country/list?continentSubType=OML">美拉尼西亚</a> &nbsp;&nbsp;&nbsp;&nbsp;
<#--        <a href="${request.contextPath}/country/list?continentSubType=OMK">密克罗尼西亚</a>-->
    </div>
    <div class="container-fluid">
        <div class="table-responsive">
            <table id="dataGrid" class="table table-striped table-bordered">
                <thead>
                <tr>
                    <th>序号</th>
                    <th>ID</th>
                    <th>国旗</th>
                    <th>国家名称</th>
                    <th>所属大洲</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <#list syCountryList as syCountry>
                    <tr>
                        <td>${syCountry_index+1}</td>
                        <td>${syCountry.id}</td>
                        <td>
                            <img src="/flag/${syCountry.continentType}/${syCountry.enName}_${syCountry.cnName}.png"
                                 width="60px" height="40px" />
                        </td>
                        <td>
                            ${syCountry.cnName}(${syCountry.code})
                            </br>
                            ${syCountry.enName}
                        </td>
                        <td>
                            <#if syCountry.continentType??>
                                ${syCountry.continentType.value}
                            </#if>
                            </br>
                            <#if syCountry.continentSubType??>
                                ${syCountry.continentSubType.value}
                            </#if>
                        </td>
                        <td>
                            <#--                            <button class="btn btn-xs btn-primary" >修改</button>-->
                            <#--                            <button class="btn btn-xs btn-primary" >删除</button>-->
                        </td>
                    </tr>
                </#list>
                </tbody>
            </table>
        </div>
    </div>
</body>
</html>